<?php

use common\server\BasicDataServer;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\SearchRentingModel */
/* @var $form yii\widgets\ActiveForm */

$fieldOptions1 = [
    'options' => ['class' => 'form-group search-group'],
];

?>

<div class="renting-model-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>


    <?= $form->field($model, 'house_name',$fieldOptions1)->label(false)->textInput(['placeholder' =>'关键字']) ?>

    <?= $form->field($model, 'mode',$fieldOptions1)->label(false)->dropDownList($model->getModes()) ?>
    <?php  echo $form->field($model, 'region_id',$fieldOptions1)->label(false)->dropDownList(BasicDataServer::instance()->getRegionToOptions(true), ['encodeSpaces' => 1]) ?>

    <?php // echo $form->field($model, 'traffic') ?>

    <?php // echo $form->field($model, 'mating') ?>

    <?php // echo $form->field($model, 'lease') ?>

    <?php // echo $form->field($model, 'payment') ?>

    <?php // echo $form->field($model, 'configure') ?>

    <?php // echo $form->field($model, 'banner') ?>

    <?php // echo $form->field($model, 'adv') ?>

    <?php // echo $form->field($model, 'is_banner') ?>

    <?php // echo $form->field($model, 'is_banner_home') ?>

    <?php // echo $form->field($model, 'is_adv') ?>

    <?php // echo $form->field($model, 'is_recommend') ?>

    <?php // echo $form->field($model, 'recommend_sort') ?>

    <?php // echo $form->field($model, 'latitude') ?>

    <?php // echo $form->field($model, 'longitude') ?>

    <?php // echo $form->field($model, 'creater') ?>

    <div class="form-group">
        <?= Html::submitButton('搜索', ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>
    <div class="clearfix"></div>

</div>
